package com.zmj.mapper;

import com.zmj.entity.SignUp;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SignUpMapper {
    @Insert("insert into signup(name,age,identity,phone,model) values(#{signUp.name},#{signUp.age},#{signUp.identity},#{signUp.phone},#{signUp.model})")
    int createEn(@Param("signUp") com.zmj.entity.SignUp signUp);

    @Select("select * from signup")
    List<SignUp> getUpInfo();
}
